<T:ViewBase x:Class="WPFExcelReport.TQVW_ABFOLGE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KAUF:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.KAUF}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=AUFTYP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.AUFTYP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.PKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PLFD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.PLFD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.PPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PAUF:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.PAUF}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=PFSTEP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.PFSTEP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABFSTATUS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.ABFSTATUS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABFKSTKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.ABFKSTKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=ABFKST:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.ABFKST}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KST:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQVW_ABFOLGE.KST}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsQVW_ABFOLGE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwQVW_ABFOLGE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwQVW_ABFOLGE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="KAUF"
                                    Binding="{Binding Path=KAUF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KAUF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AUFTYP"
                                    Binding="{Binding Path=AUFTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AUFTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PKRS"
                                    Binding="{Binding Path=PKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PLFD"
                                    Binding="{Binding Path=PLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PPOS"
                                    Binding="{Binding Path=PPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PAUF"
                                    Binding="{Binding Path=PAUF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PAUF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PFSTEP"
                                    Binding="{Binding Path=PFSTEP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PFSTEP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFSTATUS"
                                    Binding="{Binding Path=ABFSTATUS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFSTATUS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFKSTKRS"
                                    Binding="{Binding Path=ABFKSTKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFKSTKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFKST"
                                    Binding="{Binding Path=ABFKST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFKST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KST"
                                    Binding="{Binding Path=KST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KOPERATION"
                                    Binding="{Binding Path=KOPERATION, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KOPERATION}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KOPEBEZ"
                                    Binding="{Binding Path=KOPEBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KOPEBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MTYPE"
                                    Binding="{Binding Path=MTYPE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MTYPE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFPLANKZ"
                                    Binding="{Binding Path=ABFPLANKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFPLANKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSNR"
                                    Binding="{Binding Path=LSNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MACHINE"
                                    Binding="{Binding Path=MACHINE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MACHINE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFSOLLSTK"
                                    Binding="{Binding Path=ABFSOLLSTK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFSOLLSTK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PLANKG"
                                    Binding="{Binding Path=PLANKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PLANKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFSOLLME"
                                    Binding="{Binding Path=ABFSOLLME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFSOLLME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PLANMTR"
                                    Binding="{Binding Path=PLANMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PLANMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AKG"
                                    Binding="{Binding Path=AKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AMTR"
                                    Binding="{Binding Path=AMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="ABFFIX"
                                    Binding="{Binding Path=ABFFIX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=ABFFIX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PFSTART"
                                    Binding="{Binding Path=PFSTART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PFSTART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="PFEND"
                                    Binding="{Binding Path=PFEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=PFEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AFDSTART"
                                    Binding="{Binding Path=AFDSTART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AFDSTART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AFTSTART"
                                    Binding="{Binding Path=AFTSTART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AFTSTART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AFDEND"
                                    Binding="{Binding Path=AFDEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AFDEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="AFTEND"
                                    Binding="{Binding Path=AFTEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=AFTEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="RPAUF"
                                    Binding="{Binding Path=RPAUF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=RPAUF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LO"
                                    Binding="{Binding Path=LO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LB"
                                    Binding="{Binding Path=LB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FCOST"
                                    Binding="{Binding Path=FCOST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FCOST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MCOST"
                                    Binding="{Binding Path=MCOST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MCOST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBOMCOST"
                                    Binding="{Binding Path=MBOMCOST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBOMCOST}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
